﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using HCMServices.BUS;

namespace HCMServices.Tests.TESTBUS
{
    /// <summary>
    /// Unit test for SearchUtilities class
    /// </summary>
    [TestClass]
    public class TestSearchUtilities
    {
        /// <summary>
        /// Unit test for CheckExistNumber() method in SearchUtilities class
        /// </summary>
        [TestMethod]
        public static void TestCheckExistNumber()
        {
            bool ret = SearchUtilities.CheckExistNumber("abcd2eaasdf1");
            
            if (ret)
            {
                Assert.IsTrue(true);
                return;
            }

            Assert.IsFalse(true);
        }

        /// <summary>
        /// Unit test for FormatInputData() methos in SearchUtilities class
        /// </summary>
        [TestMethod]
        public static void TestFormatInputData()
        {
            string result = SearchUtilities.FormatInputData("   Asếk 123 Á SSS   ");
            if ("asek 123 a sss" == result)
            {
                Assert.IsTrue(true);
                return;
            }

            Assert.IsFalse(true);
        }
    }
}
